import store from "@/store/index";
var work = store.getters.menus;
// console.log(work)
//
// var work = store.getters.datas;
// var work = [];
work.forEach(item => {
  if (item.children.length > 0) {
    item.children.forEach(i => {
      i.path = "/" + i.name;
      i.title = i.meta.title;
      i.icon = i.meta.icon;
    });
  }
});
const objs = {};
for (var i = 0; i < work.length; i++) {
  objs[work[i].name] = work[i];
}

export { objs, work };
